//
//  PopulationTableViewCell.m
//  Utils
//
//  Created by enghou on 2018/4/20.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

#import "PopulationTableViewCell.h"

@interface PopulationTableViewCell()
@property (weak, nonatomic) IBOutlet UIImageView *titleImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *otherDescLabel;
@property (weak, nonatomic) IBOutlet UILabel *addressLabel;

@end


@implementation PopulationTableViewCell


-(void)setModel:(PopulationItemModel *)model{
    _model = model;
    [self.titleImageView sd_setImageWithURL:[NSURL URLWithString:_model.head_image] placeholderImage:[UIImage imageNamed:@"icon_empty_head"]];
    self.nameLabel.text = _model.name;
    self.otherDescLabel.text = _model.desc;
    self.addressLabel.text = _model.address;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
